package com.geek.image.domain;

import com.geek.image.handler.ImageSotre;
import lombok.Data;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

@Data
@Configuration
public class ImageSotreManager {
    private Map<String, ImageSotre> maps = new HashMap<>();

    public void setImageStore(String code, ImageSotre imageSotre) {
        maps.put(code, imageSotre);
    }

    public ImageSotre getImageStore(String code) {
        return maps.get(code);
    }
}
